//封装和Token相关的方法 存 取 删

const TOKENKEY = 'token_key'
const getToken = () => {
    return localStorage.getItem(TOKENKEY)
}
const setToken = (token) => {
    localStorage.setItem(TOKENKEY, token)
}
const removeToken = () => {
    localStorage.removeItem(TOKENKEY)
}

export { 
    getToken, 
    setToken, 
    removeToken 
}